package com.test;

import java.util.List;

import org.junit.Test;

import com.common.entity.A_customer;
import com.common.entity.A_goods;
import com.common.entity.A_timeRules;
import com.cxh.dao.A_goodsDao;
import com.cxh.dao.impl.A_goodsDaoImpl;
import com.lyk.dao.A_customerDao;
import com.lyk.dao.A_timeRulesDao;
import com.lyk.dao.impl.A_customerDaoImpl;
import com.lyk.dao.impl.A_timeRulesDaoImpl;

public class testCustomer {
	@Test
	public void test1(){
		A_customerDao customerDao = new A_customerDaoImpl();
		List<A_customer> lc = customerDao.findByCondition(null);
		for(A_customer c : lc){
			System.out.println(c.getCustomer_id()+ c.getRealName());
		}
	}
	@Test
	public void test2(){
		A_timeRulesDao timeRulesDao = new A_timeRulesDaoImpl();
		A_timeRules timeRules = timeRulesDao.findById(2);
		System.out.println(timeRules.getTimeLimit()+ ","+timeRules.getTimeRules_id());
	}
	@Test
	public void test3(){
		A_goodsDao gd = new A_goodsDaoImpl();
		List<A_goods> lg = gd.findByCondition(null);
		for(A_goods g:lg){
			System.out.println(g.getMinPrice()+" "+g.getGoods_name());
		}
	}
}
